
/*
    choice.dll用于随机选择。23-11-28
*/

#pragma once
#ifndef _CHOICEDLLAPI
#define _CHOICEDLLAPI __declspec(dllexport)
#endif

/* 从num个选项里选择, 每项的权重是weight[i] */
extern "C" _CHOICEDLLAPI int WeightChoice(int* weight, int num);
/* random_distribute_int*/
extern "C" _CHOICEDLLAPI int RandomDistInt(int _min, int _max);